﻿namespace MySqlSync.Core.Models
{
    /// <summary>
    /// 数据同步记录
    /// </summary>
    public class SyncRecord
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; } = string.Empty;

        /// <summary>
        /// 记录ID
        /// </summary>
        public string RecordId { get; set; } = string.Empty;

        /// <summary>
        /// 操作类型：INSERT, UPDATE, DELETE
        /// </summary>
        public string Operation { get; set; } = string.Empty;

        /// <summary>
        /// 记录数据（JSON格式）
        /// </summary>
        public string Data { get; set; } = string.Empty;

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OperationTime { get; set; } = DateTime.Now;
    }
}
